package finance

import grails.test.*

class LnServiceTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

	def lnService
	
    void testLn() {
		def outcome = lnService.ln([-1,0, 1])
		assertNotNull outcome
		assertEquals  2, outcome.size()
		assertEquals  0, outcome[0]
    }
	
	void testDeltaLn() {
		def outcome = lnService.deltaLn([-1,0,1,1])
		assertNotNull outcome
		assertEquals  1, outcome.size()
		assertEquals  0, outcome[0]
	}
}
